<div id="space"><div class="buttons"><a href="/admin/" class="button add">Thêm</a></div></div>
<div id="space"><div class="buttons"><a href="/admin/" class="button flag">Sửa</a></div></div>
<div id="space"><div class="buttons"><a href="/admin/" class="button delete">Xóa</a></div></div>
<div id="search"><input type="text" class="search"/></div>

<div id="next"><div class="buttons"><a href="/admin/" class="button">Tiến tới</a></div></div>
<div id="pre"><div class="buttons"><a href="/admin/" class="button">Lùi lại</a></div></div>


<div id="view">
<table width="775" border="1" class="view" cellpadding="10" cellspacing="0">
  <th width="15">
  <form id="form1" name="form1" method="post" action="">
    <input type="checkbox" name="checkbox" id="checkbox" />
  </form> 
  </th>	
  <th width="40px">ID</th>
  <th>Username</th>
  <th width="250px">Email</th>
  <th width="100px">Quyền hạng</th>	
  <th width="100px">Hiển thị</th>	
   <th width="50px">Upload</th>
  <?php
sql2();
	  $sql="SELECT * FROM `user`";
	  $re=mysql_query($sql);
	  $page=ceil(mysql_num_rows($re)/15);
  	  if((!isset($_GET['page']))||($_GET['page']==1))
	  {
		  $x=0; $y=20;  
	  }	  
  	  $sql="SELECT * FROM `user` ORDER BY  `userid` ASC LIMIT 0,20";
	  $excute=mysql_query($sql);
	  while ($row=mysql_fetch_array($excute,MYSQL_ASSOC))
	  {
		  echo'<tr><td><form id="form1" name="form1" method="post" action="">
    	  <input type="checkbox" name="checkbox" id="checkbox" /></form> </td><td>';
		  echo $row['userid']; echo '</td><td>';
		  echo $row['username']; echo '</td><td>';
		  echo $row['email']; echo '</td><td>';
		  echo $row['usergroupid']; echo '</td><td>';
		  echo $row['displaygroupid']; echo '</td><td align="center" class="press">';
		  if ($row['user_upload_permit']==1)	  
echo '<div class="buttons" moduleid="'.$row['user_upload_permit'].'" status="0"><a class="button save">Bật</a></div>'; else
echo '<div class="buttons" moduleid="'.$row['user_upload_permit'].'" status="1"><a class="button delete">Tắt</a></div></td></tr>';
	  }
	  echo '</table>';
sql();
?>
</div>

